package com.zhiche.lisa.bms.service.driver;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.bms.dao.model.driver.FuelType;
import com.zhiche.lisa.bms.pojo.vo.driver.FuelTypeQueryConditionVO;
import com.zhiche.lisa.bms.pojo.vo.driver.FuelTypeVO;
import com.zhiche.lisa.core.supports.BaseException;
import org.springframework.validation.BindingResult;

import java.util.List;

/**
 * <p>
 * 燃油类型表 服务类
 * </p>
 *
 * @author zhaoguixin
 * @since 2018-08-30
 */
public interface IFuelTypeService extends IService<FuelType> {

	/**
	 * 分页查询燃油类型
	 *
	 * @param page
	 * @return
	 */
	Page<FuelTypeVO> listByPage(Page<FuelTypeVO> page);

	/**
	 * 添加燃油类型
	 *
	 * @param fuelTypeVO
	 * @param br
	 * @return
	 */
	Integer add(FuelTypeVO fuelTypeVO, BindingResult br);

	/**
	 * 更新燃油类型
	 *
	 * @param fuelTypeVO
	 * @param br
	 * @return
	 */
	Boolean update(FuelTypeVO fuelTypeVO, BindingResult br);

	/**
	 * 删除燃油类型
	 *
	 * @param id
	 * @return
	 * @throws BaseException
	 */
	Boolean del(Integer id) throws BaseException;

	/**
	 * 根据id得燃油类型
	 *
	 * @param id
	 * @return
	 */
	FuelTypeVO getById(Integer id);

	/**
	 * 根据条件查询
	 *
	 * @param fuelTypeQueryConditionVO
	 * @return
	 */
	List<FuelTypeVO> selectListByConditions(FuelTypeQueryConditionVO fuelTypeQueryConditionVO);
}
